package de.hach.manno.webservice;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Root;

/**
 * <club name="SG Ölbronn-Dürrn" id="1" timestamp="2012-06-17 18:00:00"/> Object
 * class to map xml-response of webservice
 * 
 * @author hanspeter
 * 
 */
@Root
public class Club {

	@Attribute
	private int id;

	@Attribute
	private String name;

	@Attribute
	private String timestamp;

	public String getName() {
		return name;
	}

	public int getId() {
		return id;
	}

	public String getTimestamp() {
		return timestamp;
	}

	@Override
	public String toString() {
		return "Club [" + this.id + " (" + this.timestamp + ")] " + this.name;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

}
